package com.umeox.watch.moto.dataservice.db.model;


import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@Entity(tableName = LocationPeriod.TABLE_NAME)
public class LocationPeriod {
    @Ignore
    public static final String TABLE_NAME = "location_period";

    @PrimaryKey
    private long id;

    private String name;

    private String startTime;

    private String endTime;

    private int locPriority;

    private int freq;

    private String repeatExpression;


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public int getLocPriority() {
        return locPriority;
    }

    public void setLocPriority(int locPriority) {
        this.locPriority = locPriority;
    }

    public int getFreq() {
        return freq;
    }

    public void setFreq(int freq) {
        this.freq = freq;
    }

    public String getRepeatExpression() {
        return repeatExpression;
    }

    public void setRepeatExpression(String repeatExpression) {
        this.repeatExpression = repeatExpression;
    }

    @Override
    public String toString() {
        return "LocationPeriod{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", locPriority=" + locPriority +
                ", freq=" + freq +
                ", repeatExpression='" + repeatExpression + '\'' +
                '}';
    }
}
